﻿<Page
    x:Class="BeanScratchDemo.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:BeanScratchDemo"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <TextBlock HorizontalAlignment="Left" Margin="10,27,0,0" TextWrapping="Wrap" Text="Bean Scratch Demo" VerticalAlignment="Top" FontSize="48" FontFamily="Segoe UI"/>
        <TextBlock HorizontalAlignment="Left" Margin="26,128,0,0" TextWrapping="Wrap" Text="Device: " VerticalAlignment="Top" FontSize="16" FontWeight="Bold"/>
        <TextBlock x:Name="DeviceTextBlock" HorizontalAlignment="Left" Margin="100,128,0,0" TextWrapping="Wrap" Text="unknown" VerticalAlignment="Top" FontSize="16"/>
        <ToggleSwitch x:Name="LedToggleSwitch" Header="Led" HorizontalAlignment="Left" Margin="20,164,0,0" VerticalAlignment="Top" Toggled="LedToggleSwitch_Toggled" FontFamily="Global User Interface"/>
        <TextBlock x:Name="ScratchValueTextBlock" HorizontalAlignment="Left" Margin="174,457,0,0" TextWrapping="Wrap" Text="Temperature: " VerticalAlignment="Top" FontSize="72" FontWeight="Bold" Foreground="#FF13C71C"/>
        <TextBlock x:Name="ConnectionStateTextBlock" HorizontalAlignment="Left" Margin="191,128,0,0" TextWrapping="Wrap" Text="(disconnected)" VerticalAlignment="Top" FontSize="16" Foreground="Red"/>

    </Grid>
</Page>
